#include "manager_main_1.h"
#include "ui_manager_main_1.h"
#include <QPushButton>
#include"sys_suggestion.h"
manager_main_1::manager_main_1(QWidget *parent) :
    QDialog(parent),
    ui(new Ui::manager_main_1)
{
    ui->setupUi(this);
    this->sys=new sys_suggestion;//实例化系统建议页面
    connect(ui->pushButton,&QPushButton::clicked,[=](){
        this->hide();//隐藏窗口
        this->sys->show();
    });
    connect(this->sys,&sys_suggestion::back,[=](){

        this->sys->hide();
        this->show();
    });

    this->notice=new Notice;//实例化公告页面
    connect(ui->pushButton_2,&QPushButton::clicked,[=](){
        this->hide();//隐藏窗口
        this->notice->show();
    });

    connect(this->notice,&Notice::back_1,[=](){

        this->notice->hide();
        this->show();
    });
}

manager_main_1::~manager_main_1()
{
    delete ui;
}

void manager_main_1::on_pushButton_6_clicked()
{
    close();
}
